gui/tray: Add hacky workaround to avoid icon and text for menu items in tray header...
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 27 Feb 2025 08:21:50 +0000 (16:21 +0800)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 3 Mar 2025 16:18:32 +0000 (16:18 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/tray/TrayWindowHeader.qml

index a78aab5f842e331b6ef24c7d162f9ca872d998c2..3fbd8fc53876475843eb7f5307a455747612f5a7 100644 (file)
@@ -121,7 +121,9 @@ Rectangle {
                     model: UserAppsModel
                     delegate: MenuItem {
                         id: appEntry
-                        text: model.appName
+                        // HACK: Without creating our own component (and killing native styling)
+                        // HACK: we do not have a way to adjust the text and icon spacing.
+                        text: "  " + model.appName
                         font.pixelSize: Style.topLinePixelSize
                         icon.source: model.appIconUrl
                         icon.color: palette.windowText